package com.itic.appbase.framework.xcx.type;
/**
 * 区域状态枚举
 * @author enne
 *
 */
public enum DeliveryAreaType {
	NoLimit("0","不限制"),LIMIT("1","限制");

	private String state;
	
	private String name;
	
	DeliveryAreaType(String state, String name) {
		this.state = state;
		this.name = name;
	}
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static DeliveryAreaType getDeliveryAreaType(String state) {
		DeliveryAreaType DeliveryAreaType = null;
		switch (state) {
		case "0":
			DeliveryAreaType = DeliveryAreaType.NoLimit;
			break;
		case "1":
			DeliveryAreaType = DeliveryAreaType.LIMIT;
			break;
		}
		return DeliveryAreaType;
	}
	

}
